/* ExitListener.java
 * Author: liuex
 * 2007-12-20 ����01:45:33
 *
 * Note: 
 */
package org.lex.app;

import java.util.EventListener;

/**
 * Give the Application a chance to veto an attempt to exit/quit. An
 * ExitListener's canExit method should return false if there are pending
 * decisions that the user must make before the app exits. <br>
 * First we ask every registered(shortcut is used) ExitListener canExit(), if
 * any one returns false then exit is veto-ed.<br>
 * If every ExitListener says "true" on canExit(), then willExit() method is
 * called. An ExitListener that's going to perform some cleanup work should do
 * so in willExit.
 */
public interface ExitListener extends EventListener {
	public boolean canExit();

	public void willExit();
}
